export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/Login'
          }
        ]
      },
      {
        component: './404'
      },
    ],
  },

  {
    path: '/home',
    name: '首页',
    icon: 'dashboard',
    access: 'normalRouteFilter',
    routes: [
      {
        path: '/home/workbench',
        name: '工作台',
        component: './home/Workbench',
        access: 'normalRouteFilter'
      }
    ]
  },

  {
    path: '/management',
    name: '管理',
    icon: 'reconciliation',
    access: 'normalRouteFilter',
    routes: [
      {
        path: '/management/organization',
        name: '机构管理',
        component: './management/Organization',
        access: 'normalRouteFilter'
      },
      {
        path: '/management/school',
        name: '学校管理',
        component: './management/School',
        access: 'normalRouteFilter'
      },
      {
        path: '/management/school/modify',
        name: '修改学校信息',
        component: './management/School/modify',
        hideInMenu: true,
        access: 'normalRouteFilter'
      },
      {
        path: '/management/budget',
        name: '预算调拨',
        component: './management/Budget',
        access: 'normalRouteFilter'
      },
      {
        path: '/management/budget/detail',
        name: '预算调拨详情',
        component: './management/Budget/detail',
        hideInMenu: true,
        access: 'normalRouteFilter'
      },
      {
        path: '/management/budget/modify',
        name: '修改预算',
        component: './management/Budget/modify',
        hideInMenu: true,
        access: 'normalRouteFilter'
      },
      {
        path: '/management/checkBook',
        name: '图书清查',
        component: './management/CheckBook',
        access: 'normalRouteFilter'
      },
      {
        path: '/management/checkBook/detail',
        name: '图书清查详情',
        component: './management/CheckBook/detail',
        hideInMenu: true,
        access: 'normalRouteFilter'
      }
    ]
  },
  {
    path: '/statistics',
    name: '统计',
    icon: 'LineChart',
    access: 'normalRouteFilter',
    routes: [
      {
        path: '/statistics/collection',
        name: '典藏统计',
        access: 'normalRouteFilter',
        routes: [
          {
            path: '/statistics/collection/cancellation',
            name: '图书注销统计',
            component: './statistics/collection/Cancellation',
            access: 'normalRouteFilter'
          },
          {
            path: '/statistics/collection/classification',
            name: '馆藏分类统计',
            component: './statistics/collection/Classification',
            access: 'normalRouteFilter'
          },
          {
            path: '/statistics/collection/assets',
            name: '财产统计',
            component: './statistics/collection/Assets',
            access: 'normalRouteFilter'
          },
          {
            path: '/statistics/collection/summary',
            name: '总括报表',
            component: './statistics/collection/Summary',
            access: 'normalRouteFilter'
          }
        ]

      },
      {
        path: '/statistics/flow',
        name: '流通统计',
        access: 'normalRouteFilter',
        routes: [
          {
            path: '/statistics/flow/borrowtrend',
            name: '读者借阅趋势',
            component: './statistics/flow/BorrowTrend',
            access: 'normalRouteFilter'
          },
          {
            path: '/statistics/flow/circulation',
            name: '流通率统计',
            component: './statistics/flow/Circulation',
            access: 'normalRouteFilter'
          },
          {
            path: '/statistics/flow/circulation/detail',
            name: '流通率详情',
            component: './statistics/flow/Circulation/detail',
            hideInMenu: true,
            access: 'normalRouteFilter'
          },
          {
            path: '/statistics/flow/attend',
            name: '到馆率统计',
            component: './statistics/flow/Attend',
            access: 'normalRouteFilter'
          }, 
          {
            path: '/statistics/flow/attend/detail',
            name: '到馆率详情',
            component: './statistics/flow/Attend/detail',
            hideInMenu: true,
            access: 'normalRouteFilter'
          },
          {
            path: '/statistics/flow/borrow',
            name: '读者借阅率统计',
            component: './statistics/flow/Borrow',
            access: 'normalRouteFilter'
          },
          {
            path: '/statistics/flow/borrow/detail',
            name: '读者借阅率详情',
            component: './statistics/flow/Borrow/detail',
            hideInMenu: true,
            access: 'normalRouteFilter'
          },
          {
            path: '/statistics/flow/utilization',
            name: '图书利用率统计',
            component: './statistics/flow/Utilization',
            access: 'normalRouteFilter'
          },
          {
            path: '/statistics/flow/utilization/detail',
            name: '图书利用率详情',
            component: './statistics/flow/Utilization/detail',
            hideInMenu: true,
            access: 'normalRouteFilter'
          }
        ]
      }
    ]
  },
  {
    path: '/setting',
    name: '设置',
    icon: 'setting',
    access: 'normalRouteFilter',
    routes: [
      {
        path: '/setting/role',
        name: '角色管理',
        component: './setting/Role',
        access: 'normalRouteFilter',
      },
      {
        path: '/setting/role/detail',
        name: '角色详情',
        component: './setting/Role/detail',
        hideInMenu: true,
        access: 'normalRouteFilter'
      },
      {
        path: '/setting/role/add',
        name: '添加角色',
        component: './setting/Role/add',
        hideInMenu: true,
        access: 'normalRouteFilter'
      },
      {
        path: '/setting/role/modify',
        name: '角色信息修改',
        component: './setting/Role/modify',
        hideInMenu: true,
        access: 'normalRouteFilter'
      },
      {
        path: '/setting/admin',
        name: '管理员管理',
        component: './setting/Admin',
        access: 'normalRouteFilter'
      },
      {
        path: '/setting/admin/detail',
        name: '管理员详情',
        component: './setting/Admin/detail',
        hideInMenu: true,
        access: 'normalRouteFilter'
      },
      {
        path: '/setting/admin/add',
        name: '新增管理员',
        component: './setting/Admin/add',
        hideInMenu: true,
        access: 'normalRouteFilter'
      },
      {
        path: '/setting/admin/modify',
        name: '管理员信息修改',
        component: './setting/Admin/modify',
        hideInMenu: true,
        access: 'normalRouteFilter'
      }
    ]
  },
  {
    path: '/welcome',
    name: 'welcome',
    icon: 'smile',
    hideInMenu: true,
    component: './Welcome'
  },
  {
    path: '/',
    redirect: '/welcome'
  },
  {
    component: './404'
  },
];
